package com.xsw.common.config.minilogin;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

/**
 * 自定义微信登录权限TOKEN
 */
public class MiniLoginAuthenticationToken extends UsernamePasswordAuthenticationToken {
    //额外参数（备用）
    private final Object param;

    public MiniLoginAuthenticationToken(Object principal, Object credentials, Object param) {
        super(principal, credentials);
        this.param = param;
    }

    public Object getParam() {
        return param;
    }
}